package net.lzzy.practices.service;

import net.lzzy.practices.entities.User;

import java.util.List;
import java.util.UUID;

/**
 * @author 渊何
 */
public interface UserService {
    User check(String userName, String password);

    boolean isUserNameOccupied(String userName);

    User register(User user);

    List<User> get();

    User getById(UUID id);

    List<User> get(int page, int size);
    Integer count();
    List<User> search(String kw);
    List<User> getApplying(boolean applying);
    User approveTeacher(UUID id);
    User declineTeacher(UUID id);
    User banUser(UUID id);
    String getSalt(String userName);
}
